import requests

# 定义请求的url地址

url = """http://10.12.129.100:7102/UAC/LoginPageServlet?_dc=1701743929157&method=Login&inputId=ericzhang&password=Key%40741852963&domain=&successPage"""

# 定义请求头部信息
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36",
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Accept-Encoding": "gzip, deflate",
    "Accept-Language": "zh-CN,zh;q=0.9"
}

# 使用get方法发起请求
response = requests.get(url=url, headers=headers)

# 打印响应状态和内容
print("响应状态", response.status_code)
print("响应内容", response.text)
